package com.yc.boottxx.vo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * Company 源辰信息
 *
 * @author navy
 * @date 2024/5/27
 * Email haijunzhou@hnit.edu.cn
 */
@Component
@ConfigurationProperties(prefix = "demo")
@Data
public class Demo {

    String name;
    int age;
    String[] likes;
    List<Map<String,Object>> friends;
    Map<String,Object> familys;
    List<Dog> dogs;
}

@Data
class Dog{
    String name;
    int age;
}
